package com.example.gmallpublisher.service.impl;

import com.example.gmallpublisher.mapper.TradeStatsMapper;
import com.example.gmallpublisher.service.TradeStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
@Service
public class TradeStatsServiceImpl implements TradeStatsService {

    // Mapper method 'com.example.gmallpublisher.mapper.TradeStatsMapper.selectGMV'
    // has an unsupported return type: class java.math.BigDecimal] with root
    //赋值注解
    @Autowired
    private TradeStatsMapper tradeStatsMapper;
    @Override
    public BigDecimal getGMV(Integer date) {
        return tradeStatsMapper.selectGMV(date);
    }
}
